<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddPayTypeRefundTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('refund', function (Blueprint $table) {
            //
            $table->integer('pay_type')->unsigned()->comment('支付方式，1是微信支付，2是支付宝');

            $table->integer('order_transaction_id')->unsigned()->comment('交易表id');


        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('refund', function (Blueprint $table) {
            //

            $table->dropColumn('pay_type');


            $table->dropColumn('order_transaction_id');
        });
    }
}
